<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>

<%@ page import="com.myebills.ebpsfrontend.cust.controller.*" %>

<%
	String strURL="https://ebpsppweb.maxis.com.my/cust_sso/";
	//String strURL="http://10.200.67.148:8005/cust_sso/";
	String KEY_USER_NAME = "userId";
	String KEY_ACCOUNT_NO = "accountNo";
	
	//check for userName and phoneNo
	String userName = (String)request.getParameter(KEY_USER_NAME);
	String accNo = (String)request.getParameter(KEY_ACCOUNT_NO);
	String ENCRYPTION_PASSPHRASE="X2q3j5k6E7r8l93tm2n7H5qp";

	String param = KEY_ACCOUNT_NO+"="+accNo+ "&"+KEY_USER_NAME + "=" + userName;
	String encryptedParam = EncryptionHelper.encrypt(param,ENCRYPTION_PASSPHRASE);
	System.out.println("param="+param);
	System.out.println("encryptedParam="+encryptedParam);
    String url = strURL+"myBillDeliveryMyMaxis?param="+EncryptionHelper.encodeURL(encryptedParam);
    System.out.println("url="+url);
    %>
   <script>this.location="<%=url%>"</script>